import 'package:flutter/material.dart';
import 'package:myapp52/constants/ui_constants.dart';
import 'package:myapp52/routes.dart';

main(){
  runApp(App());
  
}

class App extends StatelessWidget{
  const App({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      //主题设置
      theme: ThemeData(
        scaffoldBackgroundColor:Uiconstants.COLOR_PAGE_BG,
        appBarTheme: AppBarTheme(backgroundColor: Uiconstants.COLOR_THEME_GREEN,
        foregroundColor: Uiconstants.COLOR_PAGE_BG,
        titleTextStyle: TextStyle(fontSize: 18),
        centerTitle: true
        ),
      ),
      //路由设置
      routes: appRoutes,
      //外观设置
      debugShowCheckedModeBanner: false,
      //主页设置
      // home: LoginPage(),
    );
  }
  
}